﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FL.DBModule;
using FL.Lite;
namespace FL.SiteEntity
{
    [Serializable]
    [FL.DBModule.Table("t_site_article", "id")]
    public class t_site_article : BaseEntity
    {
        //自增ID 
        [Column]
        public Guid id
        { get; set; }
        //类别ID 
        [Column]
        public Guid category_id
        { get; set; }
        //调用别名 
        [Column]
        public string call_index
        { get; set; }

        [Column]
        public int review_count
        {
            get;
            set;
        }

        [Column]
        public int read_count
        {
            get;
            set;
        }
        //标题 
        [Column]
        public string title
        { get; set; }
        //外部链接 
        [Column]
        public string link_url
        { get; set; }
        //图片地址 
        [Column]
        public string img_url
        { get; set; }
        //SEO标题 
        [Column]
        public string seo_title
        { get; set; }
        //SEO关健字 
        [Column]
        public string seo_keywords
        { get; set; }
        //SEO描述 
        [Column]
        public string seo_description
        { get; set; }
        //TAG标签逗号分隔 
        [Column]
        public string tags
        { get; set; }
        //内容摘要 
        [Column]
        public string zhaiyao
        { get; set; }
        //详细内容 
        [Column]
        public string content
        { get; set; }
        //排序 
        [Column]
        public int sort
        { get; set; }
        //浏览次数 
        [Column]
        public int click
        { get; set; }
        //状态0正常1未审核2锁定 
        [Column]
        public string status
        { get; set; }
        //是否允许评论 
        [Column]
        public string is_msg
        { get; set; }
        //是否置顶 
        [Column]
        public string is_top
        { get; set; }
        //是否推荐 
        [Column]
        public string is_red
        { get; set; }
        //是否热门 
        [Column]
        public string is_hot
        { get; set; }
        //是否幻灯片 
        [Column]
        public string is_slide
        { get; set; }
        //是否管理员发布0不是1是 
        [Column]
        public string is_sys
        { get; set; }
        //用户名 
        [Column]
        public string user_name
        { get; set; }
        //创建时间 
        [Column]
        public DateTime add_time
        { get; set; }
        //修改时间 
        [Column]
        public DateTime update_time
        { get; set; }

    }


    [Serializable]
    [FL.DBModule.Table("v_t_site_article", "id")]
    public class v_t_site_article : BaseEntity
    {
        /// <summary>
        /// 自增ID 
        /// </summary>
        [Column]
        public Guid id
        { get; set; }

        /// <summary>
        /// 类别ID 
        /// </summary>
        [Column]
        public Guid category_id
        { get; set; }


        [Column]
        public string category_code
        {
            get;
            set;
        }
        /// <summary>
        /// 调用别名 
        /// </summary>
        [Column]
        public string call_index
        {
            get;
            set;
        }

        /// <summary>
        /// 标题
        /// </summary>
        [Column]
        public string title
        {
            get;
            set;
        }

        [Column]
        public int review_count
        {
            get;
            set;
        }
        /// <summary>
        /// 外部链接 
        /// </summary>
        [Column]
        public string link_url
        { get; set; }
        //图片地址 
        [Column]
        public string img_url
        { get; set; }
        /// <summary>
        /// SEO标题
        /// </summary>
        [Column]
        public string seo_title
        { get; set; }
        /// <summary>
        /// SEO关健字 
        /// </summary>
        [Column]
        public string seo_keywords
        { get; set; }

        /// <summary>
        /// SEO描述
        /// </summary>
        [Column]
        public string seo_description
        { get; set; }


        [Column]
        public int read_count
        {
            get;
            set;
        }


        /// <summary>
        /// TAG标签逗号分隔 
        /// </summary>
        [Column]
        public string tags
        { get; set; }
        /// <summary>
        /// 内容摘要 
        /// </summary>
        [Column]
        public string zhaiyao
        { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column]
        public int sort
        { get; set; }

        //浏览次数 
        [Column]
        public int click
        { get; set; }
        /// <summary>
        /// 状态0正常1未审核2锁定 
        /// </summary>
        [Column]
        public string status
        { get; set; }


        //是否允许评论 
        [Column]
        public string is_msg
        { get; set; }

        /// <summary>
        /// 是否置顶
        /// </summary>
        [Column]
        public string is_top
        { get; set; }

        /// <summary>
        /// 是否推荐 
        /// </summary>
        [Column]
        public string is_red
        { get; set; }

        /// <summary>
        /// 是否热门 
        /// </summary>
        [Column]
        public string is_hot
        { get; set; }

        /// <summary>
        /// 是否幻灯片  
        /// </summary>
        [Column]
        public string is_slide
        { get; set; }

        /// <summary>
        /// 是否管理员发布0不是1是 
        /// </summary>
        [Column]
        public string is_sys
        { get; set; }

        //用户名 
        [Column]
        public string user_name
        { get; set; }

        //创建时间 
        [Column]
        public DateTime add_time
        { get; set; }

    }
}
